<include file="../Public/header" />
<!----------------------------------------------------------------------------------->
<script>
    var change=function(id){
        $(".checkbox").attr("checked",id.checked);
    }
</script>
<style>
    .articlesort{ font-size: 12px;text-align: center}
    .articlesort td{ border-bottom: 1px solid #ccc}
    .articlesort .select{ text-align: left}
    .articlesort .del{ width: 30px}
    .articlesort .order{ width: 30px;}
    
    .articlesort .name{ width: 180px;}
    .articlesort .status{ width: 60px;}
    .articlesort .sort{ width: 100px; }
    .articlesort .user{ width: 100px;}
    .articlesort .click{ width: 40px;}
    .articlesort .creattime{ width: 80px;}
    .articlesort .content td{ }
</style>
<form method="post" action="{:U('del')}">
    <table  class="articlesort">
        <tr class="select">
            <td colspan="9">
                <select onchange="document.location=this.value">
                    <option value="{:U('index')}">全部文章</option>
                    <foreach name="sort" item="vo">
                        <option value="{:U('index',array('sid'=>$vo['article_sort_id']))}" <if condition="$sid eq $vo.article_sort_id">selected</if> ><if condition="vo.level gt 1"><for start="1" end="$vo.level">&nbsp;&nbsp;</for></if>|-{$vo.article_sort_name}</option>
                    </foreach>
                </select>
            </td>
        </tr>
        <tr class="title">
            <td class="del"><input  type="checkbox" onclick="change(this)" /></td>
            <td class="order">文章id</td>
            <td class="name" >文章名</td>
            <td class="status">状态</td>
            <td class="sort">所属栏目</td>
            <td class="user">录入者</td>
            <td class="click">点击</td>
            <td class="creattime">录入时间</td>
            <td class="admin">操作</td>
        </tr>
        <foreach name="article" item="vo">
        <tr class="content">
            <td class="del"><input class="checkbox" type="checkbox" name="del[]" value="{$vo.article_id}" /></td>
            <td class="order">{$vo.article_id}</td>
            <td class="name"><a href="admin.php?m=article&a=update&id={$vo.article_id}" title="{$vo.article_title}">{$vo.article_title}</a></td>
            <td class="status"><if condition="$vo.article_status eq 1">通过<elseif condition="$vo.article_status eq 0"/><font color="#f00">待审</font></if></td>
            <td class="sort"><a href="admin.php?m=article&sid={$vo.article_sort_id}">{$vo.article_sort_name}</a></td>
            <td class="user">录入者</td>
            <td class="click">{$vo.article_click}</td>
            <td class="creattime">{$vo.article_creat_time|date="Y-m-d",###}</td>
            <td class="admin"><a href="{:U('update',array('id'=>$vo['article_id']))}">修改</a>|<a href="">查看</a></td>
        </tr>
        </foreach>
    </table>
    <input type="submit" value="批量删除" />
</form>
                        
  <include file="../Public/page" />			 
			 
<!-----------------------------------------------------------------------------------> 
<include file="../Public/footer" />